package de.cbm;

import java.math.BigDecimal;

public class MaxAufgabe {

	public static double max(double i, double j) {
		return i > j ? i : j;
	}

	public static BigDecimal max(BigDecimal i, BigDecimal j) {
		return i.max(j);
	}

	public static void main(String[] args) {
		
		System.out.println(max(1, 325));
		System.out.println(max(2.9, 9.9));
		System.out.println(max(new BigDecimal("123"), new BigDecimal("321")));
		short sh1 = 3;
		short sh2 = 7;
		System.out.println(max(sh1, sh2));
	}
}
